package com.example.demo.entity;

import java.io.Serializable;

public class View implements Serializable {
    private Person person;
    private User user;

    public View(){

    }
    public View(Person person){
        User user = new User();
        this.person = person;
        this.user = user;
    }
    public View(User user){
        Person person = new Person();
        this.person = person;
        this.user = user;
    }
    public View(Person person, User user){
        this.person = person;
        this.user = user;
    }

    public Person getPerson() {
        return person;
    }

    public void setPerson(Person person) {
        this.person = person;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "View{" +
                "person=" + person +
                ", user=" + user +
                '}';
    }
}
